import grpc
import mygrpc.mygrpc_pb2_grpc
import mygrpc.mygrpc_pb2

if __name__ == '__main__':
    channel = grpc.insecure_channel('127.0.0.1:20000')
    stub = mygrpc.mygrpc_pb2_grpc.wkxtestStub(channel)
    response = stub.call_func1(mygrpc.mygrpc_pb2.client_send_type(data_type1 = 'hello wangkaixuan'))
    print('get from service:',response)